package com.example.demo.model;

import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
//这个类基本上是和数据库对应起来的
public class BookInfo {

//    private Integer id;
//    private String bookName;
//    private String author;
//    private Integer count;
//    private BigDecimal price;
//    private String publishName;
//    private Integer status;//可以使用枚举,不建议使用Boolean类型
//    private String statusCN;

    //图书ID
    private Integer id;
    //书名
    private String bookName;
    //作者
    private String author;
    //数量
    private Integer count;
    //定价
    private BigDecimal price;
    //出版社
    private String publish;
    //状态 0-⽆效 1-允许借阅 2-不允许借阅
    private Integer status;//0-删除, 1-可借阅, 2,不可借阅
    private String statusCN;
    //创建时间
    private Date createTime;
    //更新时间
    private Date updateTime;

    @Override
    public String toString() {
        return "BookInfo{" +
                "id=" + id +
                ", bookName='" + bookName + '\'' +
                ", author='" + author + '\'' +
                ", count=" + count +
                ", price=" + price +
                ", publish='" + publish + '\'' +
                ", status=" + status +
                ", statusCN='" + statusCN + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}